//
//  XMGMeViewController.m
//  01 baisi
//
//  Created by 檀志文 on 16/2/11.
//  Copyright © 2016年 ios檀志文. All rights reserved.
//

#import "XMGMeViewController.h"

@implementation XMGMeViewController
-(void)viewDidLoad{
    [super viewDidLoad];
    
//    设置导航栏的标题
    self.navigationItem.title=@"我的";
//    设置导航栏右边的按钮
    
    UIBarButtonItem *settingItem=[UIBarButtonItem itemWithImage:@"mine-setting-icon" highImage:@"mine-setting-icon-click" target:self action:@selector(settingClick)];
    
    UIBarButtonItem *moonItem=[UIBarButtonItem itemWithImage:@"mine-moon-icon" highImage:@"mine-moon-icon-click" target:self action:@selector(nightModeClick)];
    self.navigationItem.rightBarButtonItems=@[settingItem,moonItem];
    //    设置背景色
    self.view.backgroundColor=XMGGlobalBg;
}

- (void)settingClick{
    XMGLogFunc;
}

- (void)nightModeClick{
    XMGLogFunc;
}

@end
